package ua.mihaylenko.app.data.assets 
{
	import flash.net.URLRequest;
	import ua.mihaylenko.app.controller.APPStage;
	import ua.mihaylenko.app.data.AppData;
	import ua.mihaylenko.app.interfaces.IUIData;
	/**
	 * ...
	 * @author Mihaylenko A.L.
	 */
	public class FontsManagerData implements IUIData
	{
		private var _sURL:String;
		private var _iTitlePrId:uint;
		private var _iMaxId:int;
		private var _sLnkId:String;
		public function FontsManagerData() 
		{
			
		}
		public function get url():String {
			return APPStage.APP_CONTENT_URL + _sURL;
			
		}
		/* INTERFACE IUIData */
		/**
		 * <FontsManager url="fonts/assets.swf" maxId="15" strPrId="0" lnk="Font_" />
		 */
		public function innitData(xConf:XML):void
		{
			_sURL = xConf.@url;
			_iMaxId = xConf.@maxId;
			_sLnkId = xConf.@lnk;
			_iTitlePrId = xConf.@strPrId;
		}
		public function get lnkId():String { return _sLnkId; }
		public function get maxId():int { return _iMaxId; }
		public function get preloaderMsg():String { return AppData.instance.dataStrings.getStringById(_iTitlePrId ); }
	}

}